package cn.lanqiao.util;

import java.io.File;

public class ReadFile {
	public static String readFile(String U_Level_Path,String U_Level_Name) {
		String router = null;
		File file = new File(U_Level_Path);
		String[] content = file.list();
		for (int i = 0;i < content.length;i++) {
			if (content[i].equals(U_Level_Name + ".jpg")) {
				router = U_Level_Path + content[i];
				return router;
			}
		}
		return router;
	}
	public static void main(String[] args) {
		System.out.println(new ReadFile().readFile("src\\cn\\lanqiao\\source\\U_Level\\", "倔强青铜"));
	}
}
